#ifndef TRIANGLE_H
#define TRIANGLE_H

#include "icgobject.h"
#include "point.h"

class Triangle : public ICgObject
{
public:
    Triangle(Point *p1, Point *p2, Point *p3);

    bool intersect(const Ray &r, double &t, Vector &normal) const;
    void openGlRender() const;
    ICgObject* clone() const;
};

#endif // TRIANGLE_H
